﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Serialization;

namespace ZipUp
{
    public class FtpSettings : IEasySerializable
    {
        [XmlElement("User")]
        public FtpUserSettings UserSettings { get; set; }

        [XmlElement("Host")]
        public FtpHostSettings HostSettings { get; set; }

        public static FtpSettings GetTemplate()
        {
            return new FtpSettings()
            {
                HostSettings = new FtpHostSettings
                {
                    HostName = "my.ftphost.eu"
                },
                UserSettings = new FtpUserSettings
                {
                    UserName = "alfred",
                    Password = "hitchcock"
                }
            };
        }
    }
}